<%--
  用户导航栏
  Author: ZheL2
  Date: 2023/12/12
  Version: 1.0
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>

    <nav class="navbar navbar-expand navbar-light bg-light-subtle fixed-top" style="height: 70px;">
        <a class="navbar-brand" href="<c:url value='/' />" style="margin-left: 80px" >首页</a>
        <!-- links -->
        <div class="collapse navbar-collapse" id="navbarNav">
            <ul class="navbar-nav">
                <!-- 社团管理 -->
                <li class="nav-item dropdown">
                    <a class="nav-link dropdown-toggle" id="clubDropdown" role="button" data-bs-toggle="dropdown" aria-expanded="false">社团管理</a>
                    <ul class="dropdown-menu" aria-labelledby="clubDropdown">
                        <li><a class="dropdown-item" href="<c:url value='/user/applications'/>">我的申请</a></li>
                        <li><a class="dropdown-item" href="<c:url value='/user/clubs'/>">所有社团</a></li>
                        <li><a class="dropdown-item" href="<c:url value='/user/myClubs'/>">我的社团</a></li>
                    </ul>
                </li>
                <!-- 活动管理 -->
                <li class="nav-item dropdown">
                    <a class="nav-link dropdown-toggle" id="activityDropdown" role="button" data-bs-toggle="dropdown" aria-expanded="false">活动管理</a>
                    <ul class="dropdown-menu" aria-labelledby="activityDropdown">
                        <li><a class="dropdown-item" href="<c:url value='/user/activities'/>">所有活动</a></li>
                        <li><a class="dropdown-item" href="<c:url value='/user/myActivities'/>">我的活动</a></li>
                    </ul>
                </li>
                <!-- 消息管理 -->
                <li class="nav-item">
                    <a class="nav-link" href="<c:url value='/user/announcements'/>">查看消息</a>
                </li>
                <!-- 个人管理 -->
                <li class="nav-item dropdown">
                    <a class="nav-link dropdown-toggle" href="" id="userDropdown" role="button" data-bs-toggle="dropdown" aria-expanded="false">
                        ${sessionScope.user.nickname}
                    </a>
                    <ul class="dropdown-menu" aria-labelledby="userDropdown">
                        <li><a class="dropdown-item" href="<c:url value='/user/profile'/>">个人设置</a></li>
                        <li><a class="dropdown-item" href="<c:url value='/logout'/>">退出登录</a></li>
                    </ul>
                </li>
            </ul>
        </div>

    </nav>
    <!-- 添加额外的空白占位，以避免导航栏遮挡页面内容 -->
    <div style="height: 70px;"></div>

